<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Qin的技术博客 | wangruqin.site</title>
    <style>
        :root {
            --primary: #3498db;
            --secondary: #f39c12;
            --dark: #2c3e50;
            --light: #ecf0f1;
            --gray: #95a5a6;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'PingFang SC', sans-serif;
        }

        body {
            background-color: #f5f7fa;
            color: #333;
            line-height: 1.6;
        }

        /* 导航栏 */
        header {
            background: white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        nav {
            max-width: 1200px;
            margin: 0 auto;
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--dark);
            text-decoration: none;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
        }

        .nav-links a {
            color: var(--dark);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s;
        }

        .nav-links a:hover {
            color: var(--primary);
        }

        /* 主内容区 */
        .container {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 0 2rem;
            display: grid;
            grid-template-columns: 3fr 1fr;
            gap: 2rem;
        }

        /* 文章卡片 */
        .post-card {
            background: white;
            border-radius: 8px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
            overflow: hidden;
            margin-bottom: 2rem;
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .post-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .post-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        .post-content {
            padding: 1.5rem;
        }

        .post-title {
            font-size: 1.3rem;
            margin-bottom: 0.5rem;
        }

        .post-title a {
            color: var(--dark);
            text-decoration: none;
        }

        .post-meta {
            display: flex;
            gap: 1rem;
            color: var(--gray);
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }

        .post-tag {
            display: inline-block;
            background: var(--light);
            color: var(--primary);
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
            font-size: 0.8rem;
            margin-right: 0.5rem;
        }

        /* 侧边栏 */
        .sidebar-widget {
            background: white;
            border-radius: 8px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
        }

        .widget-title {
            font-size: 1.1rem;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--light);
        }

        /* 代码高亮样式 */
        pre {
            background: #282c34;
            padding: 1rem;
            border-radius: 6px;
            overflow-x: auto;
            margin: 1rem 0;
        }

        code {
            font-family: 'Fira Code', monospace;
            color: #abb2bf;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .container {
                grid-template-columns: 1fr;
            }

            .nav-links {
                gap: 1rem;
            }
        }
    </style>
</head>

<body>
    <!-- 导航栏 -->
    <header>
        <nav>
            <a href="https://wangruqin.site/blog.html" class="logo">Qin的技术博客</a>
            <div class="nav-links">
                <a href="/">首页</a>
                <a href="profile.html">关于</a>
                <a href="https://blog.csdn.net/2301_80194476?spm=1000.2115.3001.5343" target="_blank">CSDN</a>
            </div>
        </nav>
    </header>

    <!-- 主内容区 -->
    <div class="container">
        <!-- 文章列表 -->
        <main>
            <article class="post-card" data-category="网络">
                <div class="post-content">
                    <h2 class="post-title"><a href="./blog/md/wangluo_jibengainian.md"></a>网络 基本概念</h2>
                    <div class="post-meta">
                        <span>2024年6月10日</span>
                        <span>阅读量: 500</span>
                    </div>
                    <div>
                        <span class="post-tag">网络</span>
                        <span class="post-tag">后端</span>
                    </div>
                    <p>七层网络协议模型，局域网，跨网络传输流程，MAC地址和IP地址，Socket编程</p>
                </div>
            </article>
            <article class="post-card" data-category="Linux">
                <div class="post-content">
                    <h2 class="post-title"><a href="./blog/md/Linux_xianchengtongbuyuhuchi.md">Linux 线程同步与互斥</a></h2>
                    <div class="post-meta">
                        <span>2024年6月3日</span>
                        <span>阅读量: 1.0k</span>
                    </div>
                    <div>
                        <span class="post-tag">Linux</span>
                        <span class="post-tag">后端</span>
                    </div>
                    <p>线程互斥，互斥量，条件变量，生产消费者模型，POSIX信号量，线程池设计，日志与策略模式，单例模式，线程安全，重入问题，死锁</p>
                </div>
            </article>
            <article class="post-card" data-category="Linux">
                <div class="post-content">
                    <h2 class="post-title"><a href="./blog/md/Linux_xianchenggainian.md">Linux 线程概念与控制</a></h2>
                    <div class="post-meta">
                        <span>2024年4月18日</span>
                        <span>阅读量: 1.0k</span>
                    </div>
                    <div>
                        <span class="post-tag">Linux</span>
                        <span class="post-tag">后端</span>
                    </div>
                    <p>线程的概念，页表，多级页表，进程vs线程，线程控制，创建、终止、等待、分离，线程的空间布局，封装线程</p>
                </div>
            </article>
            <article class="post-card" data-category="Linux">
                <div class="post-content">
                    <h2 class="post-title"><a href="./blog/md/Linux_jinchengxinhao.md">Linux 进程信号</a></h2>
                    <div class="post-meta">
                        <span>2024年3月22日</span>
                        <span>阅读量: 1.1k</span>
                    </div>
                    <div>
                        <span class="post-tag">Linux</span>
                        <span class="post-tag">后端</span>
                    </div>
                    <p>掌握Linux信号的基本概念。理解信号递达和阻塞的概念，原理。理解中断的意义掌握操作系统运⾏，理解缺⻚异常或其他软件异常的基本原理重新了解可重⼊函数的概念。</p>
                </div>
            </article>
            <article class="post-card" data-category="Linux">
                <div class="post-content">
                    <h2 class="post-title"><a href="./blog/md/Linux_jinchengjiantongxin.md">Linux 进程间通信</a></h2>
                    <div class="post-meta">
                        <span>2024年3月7日</span>
                        <span>阅读量: 859</span>
                    </div>
                    <div>
                        <span class="post-tag">Linux</span>
                        <span class="post-tag">后端</span>
                    </div>
                    <p>进程间通信的底层原理，匿名管道，命名管道ffo，system V的共享内存</p>
                </div>
            </article>
            <article class="post-card" data-category="Linux">
                <div class="post-content">
                    <h2 class="post-title"><a href="./blog/md/Linux_ELFfile.md">Linux ELF文件 动静态库原理</a></h2>
                    <div class="post-meta">
                        <span>2025年2月27日</span>
                        <span>阅读量: 895</span>
                    </div>
                    <div>
                        <span class="post-tag">Linux</span>
                        <span class="post-tag">后端</span>
                    </div>
                    <p>详解ELF文件，动静态库原理</p>
                </div>
            </article>
            <article class="post-card" data-category="Linux">
                <div class="post-content">
                    <h2 class="post-title"><a href="./blog/md/Linux_dongjingtaiku.md">Linux 动静态库</a></h2>
                    <div class="post-meta">
                        <span>2025年2月13日</span>
                        <span>阅读量: 1.0k</span>
                    </div>
                    <div>
                        <span class="post-tag">Linux</span>
                        <span class="post-tag">后端</span>
                    </div>
                    <p>动静态库的定义，动优缺点，创建，链接，加载，卸载</p>
                </div>
            </article>
            <article class="post-card" data-category="Linux">
                <div class="post-content">
                    <h2 class="post-title"><a href="./blog/md/Linux_EXTfilesys.md">Linux EXT2文件系统</a></h2>
                    <div class="post-meta">
                        <span>2025年1月20日</span>
                        <span>阅读量: 1080</span>
                    </div>
                    <div>
                        <span class="post-tag">Linux</span>
                        <span class="post-tag">后端</span>
                    </div>
                    <p>磁盘结构，分区，CHS寻址，LBA寻址，inode，SuperBlock，GDT，块位图，inode位图，inode节点表，Data Block，路径解析，路径缓存，挂载分区，软硬链接，ACM时间，理解一切皆文件。</p>
                </div>
            </article>
            <article class="post-card" data-category="Linux">
                <div class="post-content">
                    <h2 class="post-title"><a href="./blog/md/Linux_fileIO.md">Linux 文件与IO</a></h2>
                    <div class="post-meta">
                        <span>2024年12月7日</span>
                        <span>阅读量: 1080</span>
                    </div>
                    <div>
                        <span class="post-tag">Linux</span>
                        <span class="post-tag">后端</span>
                    </div>
                    <p>C语言文件操作，系统调用接口，介绍文件描述符原理，进程与文件联系，以及磁盘与内存文件关系，重定向原理，语言缓冲区，内核缓冲区，阐释基本文件操作原理与机制。</p>
                </div>
            </article>
            <article class="post-card" data-category="Linux">
                <div class="post-content">
                    <h2 class="post-title"><a href="./blog/md/Linux_jincheng2.md">Linux 进程2</a></h2>
                    <div class="post-meta">
                        <span>2024年11月28日</span>
                        <span>阅读量: 708</span>
                    </div>
                    <div>
                        <span class="post-tag">Linux</span>
                        <span class="post-tag">后端</span>
                    </div>
                    <p>进程退出的场景、退出码以及exit与 exit函数。进程等待的原因和方法，状态参数、等待和等待函数，非阻塞轮询。进程替换的概念函数，如execl.execle,execv.</p>
                </div>
            </article>
            <article class="post-card" data-category="Linux">
                <div class="post-content">
                    <h2 class="post-title"><a href="./blog/md/Linux_huanjingbianliang.md">Linux 环境变量与程序地址空间</a></h2>
                    <div class="post-meta">
                        <span>2024年11月24日</span>
                        <span>阅读量: 816k</span>
                    </div>
                    <div>
                        <span class="post-tag">Linux</span>
                        <span class="post-tag">后端</span>
                    </div>
                    <p>环境变量，程序地址空间</p>
                </div>
            </article>
            <article class="post-card" data-category="Linux">
                <div class="post-content">
                    <h2 class="post-title"><a href="./blog/md/Linux_jincheng1.md">Linux 进程1</a></h2>
                    <div class="post-meta">
                        <span>2024年11月22日</span>
                        <span>阅读量: 961</span>
                    </div>
                    <div>
                        <span class="post-tag">Linux</span>
                        <span class="post-tag">后端</span>
                    </div>
                    <p>进程的概念，进程的分类，进程的子句</p>
                </div>
            </article>
            <article class="post-card" data-category="Linux">
                <div class="post-content">
                    <h2 class="post-title"><a href="./blog/md/Linux_gitcgbd.md">Linux 版本控制器git和调试工具cgbd</a></h2>
                    <div class="post-meta">
                        <span>2024年10月27日</span>
                        <span>阅读量: 1022</span>
                    </div>
                    <div>
                        <span class="post-tag">Linux</span>
                        <span class="post-tag">后端</span>
                    </div>
                    <p>git的常用命令，cgbd的常用命令操作</p>
                </div>
            </article>
            <article class="post-card" data-category="Linux">
                <div class="post-content">
                    <h2 class="post-title"><a href="./blog/md/Linux_vimmakefile.md">Linux 编辑器Vim和Makefile</a></h2>
                    <div class="post-meta">
                        <span>2024年10月27日</span>
                        <span>阅读量: 1494</span>
                    </div>
                    <div>
                        <span class="post-tag">Linux</span>
                        <span class="post-tag">后端</span>
                    </div>
                    <p>Vim的常用命令，Vim的常用快捷键，配置，插件，插件的安装</p>
                </div>
            </article>
            <article class="post-card" data-category="Linux">
                <div class="post-content">
                    <h2 class="post-title"><a href="./blog/md/Linux_quanxian.md">Linux 权限</a></h2>
                    <div class="post-meta">
                        <span>2024年10月26日</span>
                        <span>阅读量: 994k</span>
                    </div>
                    <div>
                        <span class="post-tag">Linux</span>
                        <span class="post-tag">后端</span>
                    </div>
                    <p>Linux权限，Linux权限的分类，Linux权限的子句</p>
                </div>
            </article>
            <article class="post-card" data-category="Linux">
                <div class="post-content">
                    <h2 class="post-title"><a href="./blog/md/Linux_jibenzhiling.md">Linux 基本指令</a></h2>
                    <div class="post-meta">
                        <span>2024年10月3日</span>
                        <span>阅读量: 888</span>
                    </div>
                    <div>
                        <span class="post-tag">Linux</span>
                        <span class="post-tag">后端</span>
                    </div>
                    <p>了解Linux基本指令，了解Linux基本指令的分类，了解Linux基本指令的子句</p>
                </div>
            </article>
            <article class="post-card" data-category="MySql">
                <div class="post-content">
                    <h2 class="post-title"><a href="./blog/md/MySql_shujukujichu.md">MySql数据库基础</a></h2>
                    <div class="post-meta">
                        <span>2024年11月25日</span>
                        <span>阅读量: 1.0k</span>
                    </div>
                    <div>
                        <span class="post-tag">MySql</span>
                        <span class="post-tag">后端</span>
                    </div>
                    <p>了解数据库的基本概念，了解MySql的安装与配置，了解MySql的启动与停止，了解MySql的连接与断开，了解MySql的退出</p>
                </div>
            </article>
            <article class="post-card" data-category="MySql">
                <div class="post-content">
                    <h2 class="post-title"><a href="./blog/md/MySql_kuhebiaodecaozuo.md">MySql库和表的操作</a></h2>
                    <div class="post-meta">
                        <span>2024年11月25日</span>
                        <span>阅读量: 1.4k</span>
                    </div>
                    <div>
                        <span class="post-tag">MySql</span>
                        <span class="post-tag">后端</span>
                    </div>
                    <p>了解MySql库和表的操作，了解MySql库和表的创建，了解MySql库和表的删除，了解MySql库和表的修改</p>
                </div>
            </article>
            <article class="post-card" data-category="MySql">
                <div class="post-content">
                    <h2 class="post-title"><a href="./blog/md/MySql_shujuleixing.md">MySql数据类型</a></h2>
                    <div class="post-meta">
                        <span>2024年12月12日</span>
                        <span>阅读量: 1.0k</span>
                    </div>
                    <div>
                        <span class="post-tag">MySql</span>
                        <span class="post-tag">后端</span>
                    </div>
                    <p>了解MySql数据类型，了解MySql数据类型的分类，了解MySql数据类型的使用</p>
                </div>
            </article>
            <article class="post-card" data-category="MySql">
                <div class="post-content">
                    <h2 class="post-title"><a href="./blog/md/MySql_yueshu.md">MySql约束</a></h2>
                    <div class="post-meta">
                        <span>2024年12月12日</span>
                        <span>阅读量: 0.8k</span>
                    </div>
                    <div>
                        <span class="post-tag">MySql</span>
                        <span class="post-tag">后端</span>
                    </div>
                    <p>了解MySql约束，了解MySql约束的分类，了解MySql约束的创建，了解MySql约束的删除</p>
                </div>
            </article>
            <article class="post-card" data-category="MySql">
                <div class="post-content">
                    <h2 class="post-title"><a href="./blog/md/MySql_jibenchaxun.md">MySql基本查询</a></h2>
                    <div class="post-meta">
                        <span>2024年12月21日</span>
                        <span>阅读量: 1.1k</span>
                    </div>
                    <div>
                        <span class="post-tag">MySql</span>
                        <span class="post-tag">后端</span>
                    </div>
                    <p>了解MySql基本查询，了解MySql查询语句的结构，了解MySql查询语句的分类，了解MySql查询语句的子句</p>
                </div>
            </article>
            <article class="post-card" data-category="MySql">
                <div class="post-content">
                    <h2 class="post-title"><a href="./blog/md/MySql_neizhihanshu.md">MySql内置函数</a></h2>
                    <div class="post-meta">
                        <span>2024年12月22日</span>
                        <span>阅读量: 0.8k</span>
                    </div>
                    <div>
                        <span class="post-tag">MySql</span>
                        <span class="post-tag">后端</span>
                    </div>
                    <p>了解MySql内置函数，了解MySql内置函数的分类，了解MySql内置函数的子句</p>
                </div>
            </article>
            <article class="post-card" data-category="MySql">
                <div class="post-content">
                    <h2 class="post-title"><a href="./blog/md/MySql_fuhechaxun.md">MySql复合查询</a></h2>
                    <div class="post-meta">
                        <span>2024年12月24日</span>
                        <span>阅读量: 1.2k</span>
                    </div>
                    <div>
                        <span class="post-tag">MySql</span>
                        <span class="post-tag">后端</span>
                    </div>
                    <p>了解MySql复合查询，了解MySql复合查询的分类，了解MySql复合查询的子句</p>
                </div>
            </article>
            <article class="post-card" data-category="MySql">
                <div class="post-content">
                    <h2 class="post-title"><a href="./blog/md/MySql_suoyin.md">MySql索引</a></h2>
                    <div class="post-meta">
                        <span>2025年1月2日</span>
                        <span>阅读量: 1.1k</span>
                    </div>
                    <div>
                        <span class="post-tag">MySql</span>
                        <span class="post-tag">后端</span>
                    </div>
                    <p>了解MySql索引，了解MySql索引的分类，了解MySql索引的创建，了解MySql索引的删除</p>
                </div>
            </article>

        </main>

        <!-- 侧边栏 -->
        <aside>
            <div class="sidebar-widget">
                <h3 class="widget-title">搜索</h3>
                <input type="text" placeholder="输入关键词..."
                    style="width:100%; padding: 0.5rem; border: 1px solid #ddd; border-radius: 4px;">
            </div>

            <div class="sidebar-widget">
                <h3 class="widget-title">分类</h3>
                <ul style="list-style: none;">
                    <li style="padding: 0.3rem 0;"><a href="#" class="category-link" data-category="C++">C++</a></li>
                    <li style="padding: 0.3rem 0;"><a href="#" class="category-link" data-category="Linux">Linux</a>
                    </li>
                    <li style="padding: 0.3rem 0;"><a href="#" class="category-link" data-category="MySql">MySql</a>
                    </li>
                    <li style="padding: 0.3rem 0;"><a href="#" class="category-link" data-category="网络">网络</a></li>

                    <li style="padding: 0.3rem 0;"><a href="#" class="category-link" data-category="全部">全部</a></li>
                </ul>
            </div>

            <div class="sidebar-widget">
                <h3 class="widget-title">热门文章</h3>
                <div style="margin-top: 0.5rem;">
                    <div style="padding: 0.5rem 0; border-bottom: 1px dashed #eee;">
                        <a href="./blog/md/Linux_ELFfile.md" style="font-size: 0.9rem; text-decoration: none; color: var(--dark);">ELF文件 动静态库原理</a>
                    </div>
                    <div style="padding: 0.5rem 0; border-bottom: 1px dashed #eee;">
                        <a href="./blog/md/Linux_xianchenggainian.md" style="font-size: 0.9rem; text-decoration: none; color: var(--dark);">线程概念与控制</a>
                    </div>
                </div>
            </div>
        </aside>
    </div>

    <!-- 页脚 -->
    <footer style="background: var(--dark); color: white; text-align: center; padding: 2rem; margin-top: 2rem;">
        <p>© 2024 Qin的个人博客 | Powered by Markdown & C++</p>
        <p style="margin-top: 0.5rem; font-size: 0.9rem; color: var(--gray);">
            <a href="https://wangruqin.site" style="color: var(--light); text-decoration: none;">首页</a>
        </p>
    </footer>

    <!-- 可选JavaScript -->
    <script>
        // 简单的交互示例
        document.querySelectorAll('.post-card').forEach(card => {
            card.addEventListener('click', (e) => {
                if (e.target.tagName !== 'A') {
                    const link = card.querySelector('.post-title a');
                    window.location.href = link.href;
                }
            });
        });

        // 文章本地搜索功能
        const searchInput = document.querySelector('.sidebar-widget input[type="text"]');
        const posts = document.querySelectorAll('main .post-card');

        searchInput.addEventListener('input', function () {
            const keyword = this.value.trim().toLowerCase();
            posts.forEach(card => {
                // 获取标题和内容文本
                const title = card.querySelector('.post-title').innerText.toLowerCase();
                const desc = card.querySelector('p') ? card.querySelector('p').innerText.toLowerCase() : '';
                // 判断是否包含关键词
                if (title.includes(keyword) || desc.includes(keyword)) {
                    card.style.display = '';
                } else {
                    card.style.display = 'none';
                }
            });
        });

        // 分类筛选功能
        document.querySelectorAll('.category-link').forEach(link => {
            link.addEventListener('click', function (e) {
                e.preventDefault();
                const category = this.getAttribute('data-category');
                posts.forEach(card => {
                    if (category === '全部' || card.getAttribute('data-category') === category) {
                        card.style.display = '';
                    } else {
                        card.style.display = 'none';
                    }
                });
                // 可选：高亮当前选中分类
                document.querySelectorAll('.category-link').forEach(l => l.style.fontWeight = 'normal');
                this.style.fontWeight = 'bold';
            });
        });
    </script>
</body>

</html>